home *** CD-ROM | disk | FTP | other *** search
/ Sports Illustrated for Kids - Awesome Athletes! / Sports Illustrated for Kids - Awesome Athletes!.iso / hf.dir / 00082_searchlist.ls < prev    next >
Encoding:
Text File  |  1996-04-19  |  758 b   |  27 lines

  1. on mouseDown
  2.   global gHFpreviousline, ghfathleteno, gHFposition, ghfmaxathleteno, gHFline, gHFsearchcastmember, gHFsMax
  3.   if gHFsMax = 0 then
  4.     exit
  5.   end if
  6.   set the itemDelimiter to numToChar(13)
  7.   set vNum to the number of cast "searchlist"
  8.   set vmaxlines to the number of lines in field vNum
  9.   set vLine to the mouseLine
  10.   if (vLine > 0) and (vLine <= vmaxlines) then
  11.     hilite line vLine of field vNum
  12.     set gHFline to vLine
  13.   end if
  14.   if the doubleClick then
  15.     set gHFposition to vLine
  16.     if (gHFposition > 0) and (gHFposition <= vmaxlines) then
  17.       set the puppet of sprite 34 to 0
  18.       set gHFline to vLine
  19.       getposition()
  20.     else
  21.       set gHFposition to 0
  22.     end if
  23.   end if
  24.   set gHFpreviousline to vLine
  25.   dontPassEvent()
  26. end
  27.